import pytest

if __name__ == '__main__':
    command_line = ["test_main.py", "-s", "--alluredir=report"]
    pytest.main(command_line)
# 生成测试报告+在线打开测试报告
# pytest test_main.py -s --alluredir=report
# allure serve ./report
